package com.sc.nft.entity.dto;

import com.sc.nft.enums.SecondWantBuyOrderTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author 刘国航
 * @desc
 * @since 2024/12/20 13:39
 */
@Data
public class WantBuyOrderCreateDTO implements Serializable {

    private static final long serialVersionUID = 4689625087275542169L;

    @ApiModelProperty("求购类型")
    @NotNull(message = "求购类型不能为空")
    private SecondWantBuyOrderTypeEnum orderType;

    @ApiModelProperty("藏品id/道具id")
    @NotNull(message = "藏品id/道具id不能为空")
    private Long relationId;

    @ApiModelProperty("求购单价")
    @NotNull(message = "求购单价不能为空")
    private BigDecimal wantBuyPrice;

    @ApiModelProperty("求购数量")
    @NotNull(message = "求购数量不能为空")
    private Integer wantBuyQuantity;

    @ApiModelProperty("支付密码")
    @NotBlank(message = "支付密码不能为空")
    private String paymentPassword;

}

